- infos ||= @sales_firm.finance_infos
.panel.panel-default
  .panel-heading
    .panel-title
      |财务信息
      = link_to_dialog '新增', new_sales_finance_info_path(firm_id: @sales_firm.id), class: 'btn btn-xs btn-info push-10-l', style: 'color:white'
      .pull-right
        = expand_body_button
  .panel-body
    table.table.table-bordered
      tr
        th 开票类型
        th 开票抬头
        th 开户行
        th 备注
        th 操作
      - infos.each do |info|
        tr
          td = info.invoice_type_text
          td = info.name
          td = info.bank_name
          td = info.notes
          td
            = link_to_dialog '查看', info